<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>  
    <body>
     	
	<br/>
    <br/>
    <br/>    
        <div class="curved-box">
		<h2/>
			<h1>Create a pool</h1>
		<div id="inputBox">
			
     	<form:form id="create" action="/pool/create" method="post" modelAttribute="poolForm">
		  		<form:label path="name">
		  		Pool Name:
		 		</form:label>
		  		<form:input path="name" /> <br />
		
		  		<form:label path="event">
		  		Event :
		 		</form:label>
		  		<form:select id="event" path="event" >
		  			<form:options items="${allEvents}" itemValue="id" itemLabel="name" />
		  		</form:select><br />

			</div>
            <div align="center"><input type="submit" id="createButton" name="createButton" value=""/></div>
        </form:form>		<p/>	   
		</div>
 	</body>
 
</html>